APPNAME = ipckill
OBJS = main.o

ARCH = arm-hisiv100nptl-linux-
CC = $(ARCH)gcc

$(APPNAME): $(OBJS)
	$(CC) -Wall $^ -o $@
	rm -rf *.o
	cp ./$(APPNAME) /opt/rwnfs

%.o: %.c
	$(CC) -Wall -c -o $@ $<

clean:
	rm -rf *.o $(APPNAME)